import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
    {
        path: '/',
        name: 'Home',
        component: () => import('@/views/index/Home.vue')
    },
    {
        path: '/about',
        name: 'About',
        component: () => import('@/views/index/About.vue')
    }
]

const router = createRouter({
    history: createWebHistory(), // 去掉 URL 中的 #
    routes
})

export default router